package com.zhuiYun.project.api.homepagefunction.limitedtimepurchase.service;
import com.zhuiYun.project.api.commoditycomment.entity.CommodityComment;
import com.zhuiYun.project.api.seckill.entity.SeckillDto;
import java.util.List;
/**
 * @ClassName GroupFreeShippingService
 * @Author lzk
 * @Description 限时抢购服务层
 * @date 2023/4/5 9:32
 */
public interface LimitedTimePurchaseService {
    /**
     * @Author lzk
     * @Description 限时抢购查询秒杀表中商品信息
     * @date 2023/4/5 9:42
     * Return java.util.List<com.zhuiYun.project.api.commoditydetail.entity.Commodity>
     */
    List<SeckillDto> queryFlashKillInformation(String commodityName);
    /**
     * @Author lzk
     * @Description 根据id查询秒杀商品信息
     * @date 2023/4/6 13:50
     * Return com.zhuiYun.project.api.seckill.entity.SeckillDto
     */
    SeckillDto getSeckillListById(Integer id);
    /**
     * @Author lzk
     * @Description 计算评论总数量
     * @date 2023/4/7 11:24
     * Return com.zhuiYun.project.api.commoditycomment.entity.CommodityComment
     * @param cid
     */
    CommodityComment calculateTheTotalNumberOfComments(Integer cid);
    /**
     * @Author lzk
     * @Description 查询所有评论
     * @date 2023/4/7 11:59
     * Return com.zhuiYun.project.api.commoditycomment.entity.CommodityComment
     * @param cid
     */
    List<CommodityComment> queryAllComments(Integer cid);
    /**
     *
     * @Author lzk
     * @Description 计算购物车数量
     * @date 2023/4/7 16:39
     * Return java.util.List<com.zhuiYun.project.api.appletshoppingcart.entity.AppletShoppingCartEntity>
     */
    Integer calculateTheNumberOfShoppingCarts(Integer userId);
    /**
     *
     * @Author lzk
     * @Description 根据cid查询秒杀和商品信息
     * @date 2023/4/9 19:19
     * Return java.util.List<com.zhuiYun.project.api.seckill.entity.SeckillDto>
     * @param cid
     */
    SeckillDto getSeckillListByCid(Integer cid);
}
